import pyautogui
import keyboard
import time

x = 500
y = 500
pyautogui.moveTo(x, y)
speed = 20
screen_x = 1920
screen_y = 1080

def mouse_up():
	global y
	global x
	y = y - speed
	if ( y < 0 ):
		y = 0
	pyautogui.moveTo(x, y)

def mouse_down():
	global y
	global x
	y = y + speed
	if ( y > screen_y ):
		y = screen_y
	pyautogui.moveTo(x, y)

def mouse_left():
	global y
	global x
	x = x - speed
	if ( x < 0 ):
		x = 0
	pyautogui.moveTo(x, y)

def mouse_right():
	global y
	global x
	x = x + speed
	if ( x > screen_x ):
		x = screen_x
	pyautogui.moveTo(x, y)

keyboard.add_hotkey("alt+up",mouse_up )
keyboard.add_hotkey("alt+down",mouse_down )
keyboard.add_hotkey("alt+left",mouse_left )
keyboard.add_hotkey("alt+right",mouse_right )
keyboard.add_hotkey("alt+enter",pyautogui.click )
while 1 :
	time.sleep(10)
